﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="a_groupuser.ascx.cs" Inherits="administrator_uc_admin_a_groupuser" %>
<link href="../css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="../js/jquery.autocomplete.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#<%=txtKeyword.ClientID%>").autocomplete('JqueryAutocomplate.ashx');
    });       
</script>
<table cellspacing="1" class="classtable">   
    <tr>
        <td colspan="2">
        <div style="margin-top:10px">
           <span style="padding-right:8px">Tìm</span><asp:TextBox ID="txtKeyword" runat="server" Width="82%"></asp:TextBox>
           <asp:LinkButton ID="lbtSearch" runat="server"            
                onclick="lbtSearch_Click"> <img src="../images/icons/icon_search.gif" border="0px" /></asp:LinkButton>
        </div>
        </td>
    </tr> 
    <tr>
        <td class="classmessage" colspan="2">
            <asp:Literal ID="ltmessage" runat="server"></asp:Literal>
        </td>
    </tr>  
    <tr>
        <td colspan="2">
         <div style="width:100%; max-height:450px;">
            <asp:GridView ID="gv_ManageControl" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="UserName" Width="100%" AllowPaging="True" PageSize="20" 
                 onrowcommand="gv_ManageControl_RowCommand">
                <Columns>
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtAddUser" runat="server" CommandName="DoubleClick" CommandArgument='<%#Bind("UserName") %>' CausesValidation="false" ToolTip="Thêm User">
                                <img src="../images/icons/icon_adduser.png" border="0px" />
                            </asp:LinkButton>    
                            <asp:HiddenField ID="hdItemKeyFieldID" runat="server" Value='<%#Bind("UserName") %>' />                    
                        </ItemTemplate>
                    </asp:TemplateField>                                      
                    <asp:BoundField DataField="UserName" HeaderText="UserName" />  
                    <asp:BoundField DataField="FullName" HeaderText="Họ tên"  /> 
                    <asp:BoundField DataField="Email" HeaderText="Email" />  
                </Columns>
                <FooterStyle BackColor="Silver" />
                <HeaderStyle Font-Bold="True" BackColor="Silver" Font-Size="14px" 
                    Height="26px" />
                <PagerSettings FirstPageText="trang đầu-" LastPageText="-trang cuối" 
                    Mode="NumericFirstLast" NextPageText="-trang sau-" 
                    PreviousPageText="-trang trước-" Position="TopAndBottom" />
                <PagerStyle BackColor="Silver" />
                <RowStyle Height="25px" CssClass="rowStyle" />
            </asp:GridView>
        </div>
        </td>
    </tr>    
    <tr>
        <td colspan="2">
        <div style="margin:30px 20px; font-weight:bold;">
            <asp:TextBox ID="txtListUserName" Width="100%" runat="server" Height="50px" TextMode="MultiLine"></asp:TextBox>
        </div>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            &nbsp;</td>
        <td class="classcolright">
            <asp:LinkButton ID="lbtAddNewItem" runat="server" onclick="lbtAddNewItem_Click">
            <img src="../images/icons/icon_add.gif" border="0px" /> <b>OK</b>
            </asp:LinkButton>
            ||
            <asp:LinkButton ID="lbtCloseForm" runat="server" 
                OnClientClick="javascript:CloseWindows();" CausesValidation="False">
            <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
            </asp:LinkButton>
            <asp:HiddenField ID="hdItemID" runat="server" />
         </td>
    </tr>
</table>

